]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Deny a plain "Closes: #123" message in the commit message
authorPeter Hutterer <peter.hutterer@who-t.net>
Mon, 9 Sep 2024 01:07:08 +0000 (11:07 +1000)
committerMarge Bot <marge-bot@gnome.org>
Tue, 10 Sep 2024 22:40:19 +0000 (22:40 +0000)
We need the full link so let's warn contributors about this instead of
having reviewers pointing this out.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3465>

.gitlab-ci/commit-rules.yml

index 2aa32d9929e0d963095d785f63f16a704109c841..4c0f93d50184cd5d6b5e88eee740f94c15a8b543 100644 (file)
@@ -12,3 +12,5 @@ patterns:
     - regex: '([^.]\.|[:,;])\s*$'
       message: Commit message subject should not end with punctuation
       where: subject
+    - regex: '^Closes:?\s*#[0-9]+'
+      message: Closes instructions must be a full link